package cn.powerone.scm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 产品修改历史对象 scm_products_history
 * 
 * @author PowerOne
 * @date 2025-07-29
 */
public class ScmProductsHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 图号 */
    @Excel(name = "图号")
    private String drawingNumber;

    /** 列名 */
    @Excel(name = "列名")
    private String fieldName;

    /** 型号 */
    @Excel(name = "型号")
    private String oldValue;

    /** 颜色 */
    @Excel(name = "颜色")
    private String newValue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setDrawingNumber(String drawingNumber) 
    {
        this.drawingNumber = drawingNumber;
    }

    public String getDrawingNumber() 
    {
        return drawingNumber;
    }
    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }
    public void setOldValue(String oldValue) 
    {
        this.oldValue = oldValue;
    }

    public String getOldValue() 
    {
        return oldValue;
    }
    public void setNewValue(String newValue) 
    {
        this.newValue = newValue;
    }

    public String getNewValue() 
    {
        return newValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("drawingNumber", getDrawingNumber())
            .append("fieldName", getFieldName())
            .append("oldValue", getOldValue())
            .append("newValue", getNewValue())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
